package com.yh.travel.core.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.yh.travel.core.pojo.BaseEntity;
import org.apache.ibatis.annotations.Param;

/**
 * @ClassName ICrudDao
 * @Description 所有的业务DO继承此DAO
 * @Author 0715-YuHao
 * @Date 2020/10/31 11:15
 */
public interface ICrudDao<T extends BaseEntity> extends BaseMapper<T> {
    /**
     * @param page 分页对象
     * @param entity 查询条件
     */
    IPage<T> selectByPage(@Param("p") IPage<T> page, @Param("c") T entity);
}
